<%@ page import="java.util.*" %>
<%@ page import="com.ionglobal.db.*" %>
<%@ page import="com.ionglobal.lib.*" %>
<%@ page import="com.ionglobal.misc.*" %>
<%@ include file="init_include.jsp" %>
<%
	if (session.getAttribute("sysop")!=null) {		
		Sysop sysop=(Sysop)session.getAttribute("sysop");
		if(SmsEnv.get("sms.RecordToOnLine")!=null && SmsEnv.get("sms.RecordToOnLine").equals("true"))
		  OnLineUser.RemoveUserName(sysop.getName());
		if(SmsEnv.get("sms.RecordLoginTime")!=null && SmsEnv.get("sms.RecordLoginTime").equals("true")) {
			SysopLoginApp sla=new SysopLoginApp();
			sla.LogOut(dbi,sysop.getLoginId());
		}
		session.invalidate();
	}  else {
		if(Request.getInt("LoginId")>0)  {
			SysopLoginApp sla=new SysopLoginApp();
			sla.LogOut(dbi,Request.getInt("LoginId"));			
		}			
	}
%>
<script language="javascript">
if ( parent!=self)
	parent.location="index.jsp";
</script>
<%@ include file="init_free.jsp" %>

